package com.atao.order.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "order") //以order为前缀，可以实现无RefreshScope注解的自动刷新
@Data
public class OrderProperties {

    private String timeout;

    private String autoConfirm;

    private String dbUrl;
}
